//-
  ztncui - ZeroTier network controller UI
  Copyright (C) 2017-2021  Key Networks (https://key-networks.com)
  Licensed under GPLv3 - see LICENSE for details.

extends controller_layout

block content
  .row
    .col-sm-12
      h1= title

  if error
     b #{error}
  else

    form(method='POST' action='')
      .form-group.row
        .col-sm-2
          label(for='name') 网络名称:
        .col-sm-10
          input#name.form-control(type='text' name='name' placeholder='Enter new network name' value=(undefined===name ? '' : name.name))

      .form-group.row
        .col-sm-12
          button.btn.btn-primary(type='submit') 创建网络

    if errors
      .row
        .col-sm-12
          ul
            for err in errors
              li!= err.msg
